﻿<%@ Page Title="Compras" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Compras.aspx.cs" Inherits="Default5" %>
<%@ MasterType VirtualPath = "~/MasterPage.master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
        {
            text-align: center;
            color: #FFFF00;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <h3>&nbsp;</h3>
<h2 class="style4"><em>Compras</em></h2>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
            Text="Artículo / Precio Unitario / Cantidad / Total:"></asp:Label>
    <p style="text-align: left; font-size: medium; margin-left: 40px;">
        <asp:ListBox ID="lstCompras" runat="server" Height="300px" Width="339px">
        </asp:ListBox>
&nbsp;&nbsp;&nbsp;
        </p>
    <p style="text-align: left; font-size: medium">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label4" runat="server" style="text-decoration: underline" 
            Text="Descuento:"></asp:Label>
&nbsp;
        <asp:RadioButton ID="rbtn10" runat="server" Font-Italic="True" Text="10%" 
            GroupName="Descuento" oncheckedchanged="rbtn10_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; 100 puntos</p>
    <p style="text-align: left; font-size: medium">
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
        <asp:RadioButton ID="rbtn20" runat="server" Font-Italic="True" Text="20%" 
            GroupName="Descuento" oncheckedchanged="rbtn20_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; 250 puntos</p>
    <p style="text-align: left; font-size: medium">
        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
        <asp:RadioButton ID="rbtn30" runat="server" Font-Italic="True" Text="30%" 
            GroupName="Descuento" oncheckedchanged="rbtn30_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; 400 puntos</p>
    <p style="text-align: left; font-size: medium">
        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
        <asp:RadioButton ID="rbtn0" runat="server" Font-Italic="True" 
            Text="Sin Descuento" GroupName="Descuento" 
            oncheckedchanged="rbtn0_CheckedChanged" />
    </p>
    <p style="text-align: left; font-size: medium">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label3" runat="server" style="font-style: italic; font-weight: 700;" 
            Text="Puntos Disponibles:"></asp:Label>
    &nbsp;<asp:Label ID="lblPuntos" runat="server" 
            style="font-style: italic; font-weight: 700"></asp:Label>
    </p>
    <p style="text-align: left; font-size: medium">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        &nbsp;<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" 
            Text="Importe Total:  $"></asp:Label>
        <asp:Label ID="lblResultado" runat="server" Text="0"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnConfirmar" runat="server" onclick="btnConfirmar_Click" 
            Text="Confirmar Compra" />
    </p>
<p style="text-align: center; font-size: medium">
    <asp:Label ID="lblExito" runat="server" 
        style="font-style: italic; color: #FFFF00" 
        Text="La compra ha sido procesada con éxito. El vendedor se pondrá en contacto usted" 
        Visible="False"></asp:Label>
    </p>
    <p style="text-align: center; font-size: medium">
    <asp:Label ID="lblExito0" runat="server" 
        style="font-style: italic; color: #FFFF00" 
        Text="Por su compra ha sumado " 
        Visible="False"></asp:Label>
    <asp:Label ID="lblPuntosSumados" runat="server" 
        style="font-style: italic; color: #FFFF00" 
        Visible="False"></asp:Label>
    &nbsp;<asp:Label ID="lblExito1" runat="server" 
        style="font-style: italic; color: #FFFF00" 
        Text="puntos" 
        Visible="False"></asp:Label>
    </p>
    </asp:Content>

